<!--grid导航组件 -->


<template>
  <div>
    <van-grid :border="true" :column-num="5" square>
      <van-grid-item
        v-for="item in channelArr"
        :key="item.id"
        :text="item.name"
        :icon="item.icon_url"
        @click="btn()"
      >
        <!-- <van-image :src="item.icon_url" /> -->
      </van-grid-item>
    </van-grid>
  </div>
</template>

<script>
export default {
  props: ["bannerArr", "channelArr"],
  methods: {
    btn() {
      this.$router.push();
    },
  },
};
</script>

<style>
</style>